/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const toolRouter = {
  path: '/admin/tools_manage',
  name: 'AdminToolsManage',
  meta: {
    title: '实用工具',
    icon: 'el-icon-s-tools',
    routes: [
      //'admin/test/list',
      //'admin/test/form'
    ]
  },
  redirect: 'noRedirect',
  component: Layout,
  alwaysShow: true,
  children: [
    {
      path: '/admin/icon',
      name: 'AdminIcon',
      meta: {
        title: '图标',
        routes: [
          //'admin/test/list'
        ]
      },
      component: () => import('@/views/admin/icons/index')
    },
    {
      path: '/admin/test',
      name: 'AdminTest',
      meta: {
        title: '大数据测试',
        routes: [
          //'admin/test/list'
        ]
      },
      component: () => import('@/views/admin/test/list')
    },
    {
      path: '/admin/test/edit/:id(\\d+)',
      name: 'AdminTestEdit',
      component: () => import('@/views/admin/test/edit'),
      meta: {
        title: '编辑数据',
        noCache: true,
        activeMenu: '/admin/test'
      },
      hidden: true
    },
    {
      path: '/admin/form',
      name: 'AdminTestForm',
      meta: {
        title: '表单测试',
        routes: [
          //'admin/test/form'
        ]
      },
      component: () => import('@/views/admin/test/form')
    },
    {
      path: '/admin/table',
      name: 'AdminTestTable',
      meta: {
        title: '表格测试',
        routes: [
          //'admin/test/form'
        ]
      },
      component: () => import('@/views/admin/test/table')
    },
  ]
}
export default toolRouter
